<div id="view_black">
	<div id="new_page">
		<div id ="new_page_border">

			<div id="new_page_header">
		   		<h1>Create News Content</h1>
		 	</div>	

			<div id="new_page_form">	
				<p><%= error_messages_for :page %></p>	

				<% form_for(:page, :url => pages_path(), :html => { :method => :post }) do |f| %>

				  <%= f.hidden_field :section_id, :value => Section.find_by_name("news").id %>
				  <%= f.hidden_field :user_id, :value => current_user.id %>
          
          <p>
  					<label for="name">Date</label>
  					<br/>
  				  <%= f.date_select :created_at %>
  				</p>
          
				  <p>
  					<label for="name">Title</label>
  					<br/>
  				  <%= f.text_field :name, :class => :input_line %>
  				</p>

				  <p>
  					<label for="name">Headline</label>
  					<br/>
  				  <%= f.text_field :headline, :class => :input_line %>
  				</p>
  				
			    <p>
			    	<label for="description">Body</label>
					  <br/>
				    <%= f.text_area :body %>
			    </p>

				  <ul class="right">
  					<li class="horizontal"><%= link_to "cancel", :controller => :news %></li>
  					<li class="horizontal">|</li>
		        <li class="horizontal"><%= submit_tag "save",
  			                                          :class        => "btn", 
  			                                          :onmouseover  => "this.className='btn btnhov'", 
  			                                          :onmouseout   => "this.className='btn'" %>
  			    </li>
  			  </ul>
				
				  <br/>
			  <% end %>
			  
			</div> <!-- END "new_page_form" -->
			
		</div>
	</div>
</div>